package cn.xllyd.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author mylxx
 * @since 2022-12-10
 */
@TableName("t_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 订单号
     */
    private String orderNum;
    /**
     * 下单人
     */
    private String orderOwer;
    /**
     * 下单人联系方式
     */
    private String orerOwerContact;
    /**
     * 下单地址
     */
    private String orderOwerAddress;
    /**
     * 订单总重
     */
    private BigDecimal orderWeight;
    /**
     * 距离
     */
    @TableField("order_distant") // 注解一定要加 驼峰需要 20 min
    private Long orderDistant;
    /**
     * 订单总价
     */
    private BigDecimal orderCurrency;
    /**
     * 创建时间
     */
    private Date orderCreate;
    /**
     * 1-等待发货 2-运输中 3-已完成
     * 未发布6，未付预付款7、已发布1、已接单0、运输中2、已到达3、已完成4、取消5
     */
    private Integer orderStatus;
    /**
     * 车辆ID
     */
    private Integer vehicleId;
    /**
     * 线路ID
     */
    private Integer routeId;
    /**
     * 收货人
     */
    @TableField("cnee_ower")
    private String cneeOwer;
    /**
     * 收货人联系电话
     */
    @TableField("cnee_phone")
    private String cneePhone;
    /**
     * 收货人地址
     */
    @TableField("cnee_address")
    private String cneeAddress;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getOrderOwer() {
        return orderOwer;
    }

    public void setOrderOwer(String orderOwer) {
        this.orderOwer = orderOwer;
    }

    public String getOrerOwerContact() {
        return orerOwerContact;
    }

    public void setOrerOwerContact(String orerOwerContact) {
        this.orerOwerContact = orerOwerContact;
    }

    public String getOrderOwerAddress() {
        return orderOwerAddress;
    }

    public void setOrderOwerAddress(String orderOwerAddress) {
        this.orderOwerAddress = orderOwerAddress;
    }

    public BigDecimal getOrderWeight() {
        return orderWeight;
    }

    public void setOrderWeight(BigDecimal orderWeight) {
        this.orderWeight = orderWeight;
    }

    public BigDecimal getOrderCurrency() {
        return orderCurrency;
    }

    public void setOrderCurrency(BigDecimal orderCurrency) {
        this.orderCurrency = orderCurrency;
    }

    public Date getOrderCreate() {
        return orderCreate;
    }

    public void setOrderCreate(Date orderCreate) {
        this.orderCreate = orderCreate;
    }

    public Integer getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Integer vehicleId) {
        this.vehicleId = vehicleId;
    }

    public Integer getRouteId() {
        return routeId;
    }

    public void setRouteId(Integer routeId) {
        this.routeId = routeId;
    }

    public String getCneeOwer() {
        return cneeOwer;
    }

    public void setCneeOwer(String cneeOwer) {
        this.cneeOwer = cneeOwer;
    }

    public String getCneePhone() {
        return cneePhone;
    }

    public void setCneePhone(String cneePhone) {
        this.cneePhone = cneePhone;
    }

    public String getCneeAddress() {
        return cneeAddress;
    }

    public void setCneeAddress(String cneeAddress) {
        this.cneeAddress = cneeAddress;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
